#include "mydialog.h"
#include <QLabel>
#include <QProgressBar>
#include <QVBoxLayout>

mydialog::mydialog(QWidget* parent): QDialog(parent)
{
    QVBoxLayout* layout = new QVBoxLayout;
    QLabel* label = new QLabel("hello world",this);
    QProgressBar* gress = new QProgressBar(this);

    layout->addWidget(label);
    layout->addWidget(gress);

    this->setLayout(layout);

    gress->setValue(50);
    gress->setRange(0,100);
}
